package com.test.shiyan4;

import java.util.Scanner;

public class Czyz {
    public static void main(String[] args) {
        double r,h;
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入圆柱半径：");
        r= sc.nextDouble();
        System.out.print("请输入圆柱高：");
        h = sc.nextDouble();
        Yz yz=new Yz(r,h);
        double mj = yz.mj();
        System.out.println("圆柱的面积为：" + String.format("%.2f",mj));
        double tj=yz.tj();
        System.out.println("圆柱的周长为：" + tj);
    }
}
